<?php
if (!defined('PHPUnit_MAIN_METHOD')) {
    define('PHPUnit_MAIN_METHOD', 'SF_Unit_AllTests::main');
}

/**
 * Testhelper
 */

require_once dirname(__FILE__). '/../TestHelper.php';

/**
 * Include unit tests
 */
require_once('unit/Model/ModelAbstractTest.php');
require_once('unit/Model/EventTest.php');
//require_once('unit/Model/UserTest.php');
//require_once('unit/Model/AuthenticationTest.php);

/**
 * 
 * @author jigal
 *
 */
class SF_Unit_AllTests
{
	/**
	 * 
	 * @return unknown_type
	 */
	public static function main()
	{
		PHPUnit_TextUI_TestRunner::run(self::suite());
	}
	
	/**
	 * 
	 * @return PHPUnit_Framework_TestSuite
	 */
	public static function suite()
	{
		$suite = new PHPUnit_Framework_TestSuite('EventManager Unit tests');
		$suite->addTestSuite('ModelAbstractTest');
		$suite->addTestSuite('EventTest');
		//$suite->addTestSuite('UserTest');
		//$suite->addTestSuite('Authentication')
		return $suite;
	}
	
	
}

if (PHPUnit_MAIN_METHOD == 'SF_Unit_AllTests::main') {
    SF_Unit_AllTests::main();
}   